package com.example.viewInfo;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

public class ChargeTypeTreeView implements Serializable {

    private static final long serialVersionUID = -7457468645955834688L;

    private Integer chargeTypeId;// 班级类型ID

    private Integer pid;// 父级ID，默认为0

    private String typeName;// 类型名称

    private String comment;// 备注说明

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;// 创建记录时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;// 更新记录时间

    private List<ChargeTypeTreeView> children;

    public ChargeTypeTreeView() {
        super();
    }

    public ChargeTypeTreeView(Integer chargeTypeId, Integer pid, String typeName) {
        this.chargeTypeId = chargeTypeId;
        this.pid = pid;
        this.typeName = typeName;
    }

    public ChargeTypeTreeView(Integer chargeTypeId, String typeName, ChargeTypeTreeView parent) {
        this.chargeTypeId = chargeTypeId;
        this.pid = parent.getChargeTypeId();
        this.typeName = typeName;
    }

    public Integer getChargeTypeId() {
        return chargeTypeId;
    }

    public void setChargeTypeId(Integer chargeTypeId) {
        this.chargeTypeId = chargeTypeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public List<ChargeTypeTreeView> getChildren() {
        return children;
    }

    public void setChildren(List<ChargeTypeTreeView> children) {
        this.children = children;
    }


}
